package io.renren.modules.file.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author luhongda
 * @email 18018377793
 * @date 2019-02-18 20:30:06
 */
@TableName("sys_upload_file")
@Getter
@Setter
public class SysUploadFileEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private String id;

    /**
     *
     */
    private String dbName;
    /**
     * 文件id
     */
    private String objectId;
    /**
     * 文件名
     */
    private String filename;
    /**
     * 文件大小
     */
    private Long length;
    /**
     *
     */
    private int chunkSize;
    /**
     * 上传时间
     */
    private Date uploadDate;
    /**
     *
     */
    private String md5;
    /**
     * 文件类型
     */
    private String fileType;
    /**
     * 上传用户
     */
    private long uploadUser;
    /**
     * 是否删除
     */
    private Integer isDelete;
    /**
     * 文件头
     */
    private String head;
    /**
     * 文件后缀
     */
    private String suffix;
}